package com.castle.fortress.admin.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.cms.entity.CmsChannelAuditEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
/**
 * cms栏目审核配置表Mapper 接口
 *
 * @author castle
 * @since 2022-03-23
 */
public interface CmsChannelAuditMapper extends BaseMapper<CmsChannelAuditEntity> {

    /**
     * 查询栏目对应的审核人员
     * @param channelId
     * @return
     */
    List<Map<String, Object>> getAuditorByChannelId(@Param("channelId") Long channelId);

    /**
     * 将指定栏目下的子集的审核人员都删除
     * @param id
     */
    void removeByParentId(@Param("id")Long id);
}

